package com.fhMall.api;

import com.alibaba.fastjson.JSONObject;
import com.fh.modules.ums.entity.UmsMemberReceiveAddress;
import com.fhMall.request.QueryMemberAddressListRequest;
import org.springframework.web.bind.annotation.*;

/**
 * 程序名：.java<br>
 * 程序功能 <br>
 * 作成者：xianlin <br>
 * 日期：2019-10-17 9:55<br>
 * 修改履历 <br>
 * 项目名    状态      作成者      日期   <br>
 * --------------------------------------- <br>
 * 新规      xianlin   2019-10-17 9:55 <br>
 * ----------------------------- <br>
 */
public interface MemberAddressFacade {

    @GetMapping("/ums/umsMemberReceiveAddress/queryById")
    @ResponseBody
    String queryMemberAddressInfo(@RequestParam(name = "id") Integer id);

    @GetMapping(value = "/ums/umsMemberReceiveAddress/list",consumes = "application/json")
    @ResponseBody
    String queryMemberAddressList(@RequestParam(name = "memberId") Integer memberId);

    @PostMapping("/ums/umsMemberReceiveAddress/add")
    @ResponseBody
    String saveMemberAddress(@RequestBody UmsMemberReceiveAddress umsMemberReceiveAddress);

    @PutMapping("/ums/umsMemberReceiveAddress/edit")
    @ResponseBody
    String putMemberAddress(@RequestBody JSONObject jsonObject);

    @DeleteMapping("/ums/umsMemberReceiveAddress/delete")
    @ResponseBody
    String deleteMemberAddress(@RequestParam(name = "id") String id);

}
